import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'


const index = resolve => require(['@/components/index.vue'], resolve);//首页
const notice = resolve => require(['@/components/notice.vue'], resolve);//通知报告
const deployment = resolve => require(['@/components/deployment.vue'], resolve);//工作部署
const workManagement = resolve => require(['@/components/workManagement.vue'], resolve);//工作管理
const studyData = resolve => require(['@/components/studyData.vue'], resolve);//全部数据
const mine = resolve => require(['@/components/mine.vue'], resolve);//我的
const ranking = resolve => require(['@/components/ranking.vue'], resolve);//星级排名
const setting = resolve => require(['@/components/setting.vue'], resolve);//设置
const flowPartyMember = resolve => require(['@/components/flowPartyMember.vue'], resolve);//流动党员
const flowPartyMemberInfo = resolve => require(['@/components/flowPartyMemberInfo.vue'], resolve);//流动党员信息
const runThePartyStrictly = resolve => require(['@/components/runThePartyStrictly.vue'], resolve);//从严治党


//详情页
const noticeDetail = resolve => require(['@/components/noticeDetail.vue'], resolve);//通知公告详情
const partyCommitteeDetail = resolve => require(['@/components/partyCommitteeDetail.vue'], resolve);//党委文件详情
const informDetail = resolve => require(['@/components/informDetail.vue'], resolve);//通知详情
const briefingDetail = resolve => require(['@/components/briefingDetail.vue'], resolve);//通知详情
const superiorArrangementDetail = resolve => require(['@/components/superiorArrangementDetail.vue'], resolve);//上级安排详情
const townPartyCommitteeDetail = resolve => require(['@/components/townPartyCommitteeDetail.vue'], resolve);//镇党委安排详情
const meetingLearningDetail = resolve => require(['@/components/meetingLearningDetail.vue'], resolve);//会议学习详情
const lecturesLearningDetail = resolve => require(['@/components/lecturesLearningDetail.vue'], resolve);//党课学习详情
const activityDayDetail = resolve => require(['@/components/activityDayDetail.vue'], resolve);//活动日详情
const distanceLearningDetail = resolve => require(['@/components/distanceLearningDetail.vue'], resolve);//远程学习详情
const higherPolicyDetail = resolve => require(['@/components/higherPolicyDetail.vue'], resolve);//上级政策详情
const breezeDetail = resolve => require(['@/components/breezeDetail.vue'], resolve);//清风颂廉详情
const alarmDetail = resolve => require(['@/components/alarmDetail.vue'], resolve);//警钟长鸣详情
const pushInfoList = resolve => require(['@/components/pushInfoList.vue'], resolve);//推送消息列表
const pushInfoDetail = resolve => require(['@/components/pushInfoDetail.vue'], resolve);//推送消息详情
export default new Router({
  routes: [
  	//登录页
    {
      path: '/',
      name: 'login',
      component: login
    },
    //首页
    {
    	path:'/index',
    	name: 'index',
    	component: index,
    },
    //通知报告
    {
    	path:'/notice',
    	name: 'notice',
    	component: notice
    },
    //工作部署
    {
    	path:'/deployment',
    	name: 'deployment',
    	component: deployment,
    },
    //学习教育
    {
    	path:'/workManagement',
    	name: 'workManagement',
    	component: workManagement
    },
    //全部数据
    {
    	path:'/studyData',
    	name: 'studyData',
    	component: studyData
    },
    //我的
    {
    	path:'/mine',
    	name: 'mine',
    	component: mine
    },
    //星级排名
    {
    	path:'/ranking',
    	name: 'ranking',
    	component: ranking
    },
    //星级排名
    {
    	path:'/setting',
    	name: 'setting',
    	component: setting
    },
    //通告详情
    {
    	path:'/noticeDetail',
    	name: 'noticeDetail',
    	component: noticeDetail
    },
    //党委文件详情
    {
    	path:'/partyCommitteeDetail',
    	name: 'partyCommitteeDetail',
    	component: partyCommitteeDetail
    },
    //通知详情
    {
    	path:'/informDetail',
    	name: 'informDetail',
    	component: informDetail
    },
    //简报详情
    {
    	path:'/briefingDetail',
    	name: 'briefingDetail',
    	component: briefingDetail
    },
    //上级安排详情
    {
    	path:'/superiorArrangementDetail',
    	name: 'superiorArrangementDetail',
    	component: superiorArrangementDetail
    },
    //镇党委安排详情
    {
    	path:'/townPartyCommitteeDetail',
    	name: 'townPartyCommitteeDetail',
    	component: townPartyCommitteeDetail
    },
    //会议学习详情
    {
    	path:'/meetingLearningDetail',
    	name: 'meetingLearningDetail',
    	component: meetingLearningDetail
    },
    //党课学习详情
    {
    	path:'/lecturesLearningDetail',
    	name: 'lecturesLearningDetail',
    	component: lecturesLearningDetail
    },
    //活动日详情
    {
    	path:'/activityDayDetail',
    	name: 'activityDayDetail',
    	component: activityDayDetail
    },
    //远程学习详情
    {
    	path:'/distanceLearningDetail',
    	name: 'distanceLearningDetail',
    	component: distanceLearningDetail
    },
    //流动党员
    {
    	path:'/flowPartyMember',
    	name: 'flowPartyMember',
    	component: flowPartyMember
    },
    //流动党员详情信息
    {
    	path:'/flowPartyMemberInfo',
    	name: 'flowPartyMemberInfo',
    	component: flowPartyMemberInfo
    },
    //从严治党
    {
    	path:'/runThePartyStrictly',
    	name: 'runThePartyStrictly',
    	component: runThePartyStrictly
    },
    //上级政策详情
    {
    	path:'/higherPolicyDetail',
    	name: 'higherPolicyDetail',
    	component: higherPolicyDetail
    },
    //清风颂廉详情
    {
    	path:'/breezeDetail',
    	name: 'breezeDetail',
    	component: breezeDetail
    },
    //警钟长鸣详情
    {
    	path:'/alarmDetail',
    	name: 'alarmDetail',
    	component: alarmDetail
    },
    //消息列表
    {
    	path:'/pushInfoList',
    	name: 'pushInfoList',
    	component: pushInfoList
    },
    //消息列表详情
    {
    	path:'/pushInfoDetail',
    	name: 'pushInfoDetail',
    	component: pushInfoDetail
    },
  ]
})
